package com.hjz.hongbaotest;

import android.app.Application;

import com.baidu.mapapi.SDKInitializer;
import com.lzy.okgo.OkGo;
import com.lzy.okgo.cookie.CookieJarImpl;
import com.lzy.okgo.cookie.store.SPCookieStore;

import okhttp3.OkHttpClient;

/**
 * ************************************************************
 * 类描述：
 * 作者：Administrator
 * 创建时间：2017-09-25 11:25
 * <p>
 * ************************************************************
 */

public class MyApplication extends Application {

    public static String token;
    @Override
    public void onCreate() {
        super.onCreate();
        OkGo.getInstance().init(this);
        OkHttpClient.Builder builder = new OkHttpClient.Builder();
        builder.cookieJar(new CookieJarImpl(new SPCookieStore(this)));

        SDKInitializer.initialize(getApplicationContext());
    }
}
